/**
* Copyright (c) 2016-2100 yunclouds
*/
package com.yunqian.redot.service;

import com.yunqian.redot.domain.WechatPay;
import com.yunqian.redot.repository.WechatPayRepository;
import com.yunqian.service.BaseService;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author czy
 * 2018-10-10 14:43:57
 */
@Log4j2
@Service
public class WechatPayService extends BaseService<WechatPay, Long> {

    @Autowired
    private WechatPayRepository wechatPayRepository;

    public WechatPay getByOutTradeNo(String outTradeNo){
        return wechatPayRepository.findByOutTradeNo(outTradeNo);
    }
}
